﻿using SqlSugar;
using StudyCompanion.Core.Models;

namespace StudyCompanion.Entity.User;

/// <summary>
///     用户
/// </summary>
[SugarTable("use_user")]
public class Users : BaseEntity
{
    /// <summary>
    ///     昵称
    /// </summary>
    public string NickName { get; set; }

    /// <summary>
    ///     头像
    /// </summary>
    public string Avatar { get; set; }

    /// <summary>
    ///     手机号码
    /// </summary>
    public string Phone { get; set; }

    /// <summary>
    ///     登录密码
    /// </summary>
    public string Password { get; set; }

    /// <summary>
    ///     支付密码
    /// </summary>
    public string PayPass { get; set; }

    /// <summary>
    ///     微信openId
    /// </summary>
    public string AppOpenID { get; set; }

    /// <summary>
    ///     家长Id
    /// </summary>
    public long? ParentId { get; set; }

    /// <summary>
    ///     推荐人Id
    /// </summary>
    public long SuperiorUser { get; set; }

    /// <summary>
    ///     总收入
    /// </summary>
    public decimal SumIncome { get; set; }

    /// <summary>
    ///     钱包余额
    /// </summary>
    public decimal WalletBalance { get; set; }

    /// <summary>
    ///     身份
    /// </summary>
    public int Identity { get; set; }

    /// <summary>
    ///     学校
    /// </summary>
    public string School { get; set; }

    /// <summary>
    ///     年级
    /// </summary>
    public long Class { get; set; }

    /// <summary>
    ///     有效时间
    /// </summary>
    public DateTime ValidTime { get; set; }

    /// <summary>
    ///     创建时间
    /// </summary>
    [SugarColumn(IsOnlyIgnoreInsert = true)]
    public DateTime CreateTime { get; set; }
}